#ifndef MYLABEL_H
#define MYLABEL_H

#include <QWidget>
#include <QLabel>
#include <QString>
#include <QPushButton>

class MyLabel : public QWidget
{
    Q_OBJECT
public:
    explicit MyLabel(QWidget *parent = nullptr);

    void setLabel(QString str, int n);
    void setStatus(int n);
    void setPhoto(int num);
    QString getName()const;
signals:
    void sig_DoubleClick(QString str);

protected:
    void mouseDoubleClickEvent(QMouseEvent* event);


private:

    QLabel* friendName;
    QLabel* friendState;
    QPushButton* friendPhoto;

};

#endif // MYLABEL_H
